

import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { AppCommonModule } from '@app/shared/common/app-common.module';
import { UtilsModule } from '@shared/utils/utils.module';
import { CountoModule } from 'angular2-counto';
import { ModalModule, TabsModule, TooltipModule, BsDropdownModule, PopoverModule } from 'ngx-bootstrap';

import { NgxChartsModule } from '@swimlane/ngx-charts';
import { TableModule } from 'primeng/table';
import { TreeModule } from 'primeng/tree';
import { BsDatepickerModule, BsDatepickerConfig, BsDaterangepickerConfig, BsLocaleService } from 'ngx-bootstrap/datepicker';
import { NgxBootstrapDatePickerConfigService } from 'assets/ngx-bootstrap/ngx-bootstrap-datepicker-config.service';
import { QmPacketQueryComponent } from './packet/packet.component';
import { QmRoutingModule } from './qm-routing.module';
import { QualitydataqueryComponent } from './qualitydataquery/qualitydataquery.component';
import { SummarystatisticsComponent } from './summarystatistics/summarystatistics.component';
import { EnvelopestatisticsComponent } from './envelopestatistics/envelopestatistics.component';
import {LightboxModule} from 'primeng/lightbox';
import { AdminModule } from '../admin/admin.module';
import {
    AutoCompleteModule,
    CardModule,
    ContextMenuModule,
    DragDropModule,
    EditorModule,
    FileUploadModule,
    InputMaskModule,
    MultiSelectModule,
    PaginatorModule,
    TabViewModule,
    CalendarModule
} from 'primeng/primeng';
import { TextMaskModule } from 'angular2-text-mask';
import { ImageCropperModule } from 'ngx-image-cropper';
import { ShowResumeComponent } from './components/show-resume/show-resume.component';
import { BopManageComponent } from './components/bop-manage/bop-manage.component';
import { MultiMediaComponent } from './multi-media/multi-media.component';
import { LookPathComponent } from './components/look-path/look-path.component';
import { ImportWorkComponent } from './import-work/import-work.component';
//import { CreateOrEditBopModalComponentqm } from '@app/admin/bop/create-or-edit-bop-modal.component';
import {DialogModule} from 'primeng/dialog';
import { TskExportComponent } from './components/tsk-export/tsk-export.component';
NgxBootstrapDatePickerConfigService.registerNgxBootstrapDatePickerLocales();

@NgModule({
    imports: [
        DialogModule,
        CommonModule,
        ModalModule,
        TabsModule,
        TooltipModule,
        AppCommonModule,
        UtilsModule,
        QmRoutingModule,
        CountoModule,
        NgxChartsModule,
        BsDatepickerModule.forRoot(),
        BsDropdownModule.forRoot(),
        TableModule,
        PaginatorModule,
        AdminModule,
        QmRoutingModule,
        FormsModule,
        ReactiveFormsModule,
        CommonModule,
        FileUploadModule,
        ModalModule.forRoot(),
        TabsModule.forRoot(),
        TooltipModule.forRoot(),
        PopoverModule.forRoot(),
        BsDropdownModule.forRoot(),
        BsDatepickerModule.forRoot(),
        UtilsModule,
        AppCommonModule,
        TableModule,
        TreeModule,
        DragDropModule,
        ContextMenuModule,
        PaginatorModule,
        AutoCompleteModule,
        EditorModule,
        InputMaskModule,
        NgxChartsModule,
        CountoModule,
        TextMaskModule,
        ImageCropperModule,
        TabViewModule,
        CardModule,
        MultiSelectModule,
        CalendarModule,
        LightboxModule
    ],
    declarations: [
        QmPacketQueryComponent,
        QualitydataqueryComponent,
        SummarystatisticsComponent,
        EnvelopestatisticsComponent,
        ShowResumeComponent,
        BopManageComponent,
        MultiMediaComponent,
        LookPathComponent,
        ImportWorkComponent,
        TskExportComponent

    ],
    providers: [
        { provide: BsDatepickerConfig, useFactory: NgxBootstrapDatePickerConfigService.getDatepickerConfig },
        { provide: BsDaterangepickerConfig, useFactory: NgxBootstrapDatePickerConfigService.getDaterangepickerConfig },
        { provide: BsLocaleService, useFactory: NgxBootstrapDatePickerConfigService.getDatepickerLocale }
    ]
})
export class QmModule { }
